class ApprovalQuery:
    def __init__(self, approval_id=None, travel_approval=None, advance_approval=None,
                 reimbursement_approval_ma=None, reimbursement_approval_fi=None,
                 travel_rejection=None, advance_rejection=None,
                 reimbursement_rejection_ma=None, reimbursement_rejection_fi=None,
                 travel_id=None, user_id=None):
        self.approval_id = approval_id
        self.travel_approval = travel_approval
        self.advance_approval = advance_approval
        self.reimbursement_approval_ma = reimbursement_approval_ma
        self.reimbursement_approval_fi = reimbursement_approval_fi
        self.travel_rejection = travel_rejection
        self.advance_rejection = advance_rejection
        self.reimbursement_rejection_ma = reimbursement_rejection_ma
        self.reimbursement_rejection_fi = reimbursement_rejection_fi
        self.travel_id = travel_id
        self.user_id = user_id

    def to_dict(self):
        return {
            'approval_id': self.approval_id,
            'travel_approval': self.travel_approval,
            'advance_approval': self.advance_approval,
            'reimbursement_approval_ma': self.reimbursement_approval_ma,
            'reimbursement_approval_fi': self.reimbursement_approval_fi,
            'travel_rejection': self.travel_rejection,
            'advance_rejection': self.advance_rejection,
            'reimbursement_rejection_ma': self.reimbursement_rejection_ma,
            'reimbursement_rejection_fi': self.reimbursement_rejection_fi,
            'travel_id': self.travel_id,
            'user_id': self.user_id
        }
